package day03;

import java.util.Arrays;

public class testDemo {
    public static void main(String[] args) {

        say();
        sayHi(2);
        sayHello(3,4);
        System.out.println(getNum());
        System.out.println(   plus(3,4));
        System.out.println(Arrays.toString( testArray(5)));
    }
    public static int[] testArray(int x){
        int[] arr=new int[x];
        for (int i=0;i< arr.length;i++){
            arr[i]=(int)(Math.random()*100);
        }
        return arr;
    }
    public static void say(){
        System.out.println("say");
    }
    public static void sayHi(int x){
        System.out.println("sayHi"+x);
    }
    public static void sayHello(int x1,int y1){
        System.out.println(x1+y1+"sayHello");
    }
    public static int getNum(){
        return 1;
    }
    public static int plus(int x,int y){
        return x+y;
    }

}
